// 合作管理--生活服务
import request from '@/utils/request'
// 服务机构列表
export function umsServDeptList (params) {
  return request({
    url: '/serviceDept/list',
    method: 'get',
    params
  })
}

export function umsServDeptById (params) {
  return request({
    url: '/serviceDept/findOneByid',
    method: 'get',
    params
  })
}

// 新增服务机构
export function saveDept (data) {
  return request({
    url: '/serviceDept/save',
    method: 'post',
    data: data
  })
}
export function updateDept (data) {
  return request({
    url: '/serviceDept/update',
    method: 'post',
    data: data
  })
}

// 场馆相关
export function siteList (params) {
  return request({
    url: '/site/list',
    method: 'get',
    params
  })
}
export function saveSite (data) {
  return request({
    url: '/site/save',
    method: 'post',
    data: data
  })
}
export function updateSite (data) {
  return request({
    url: '/site/update',
    method: 'post',
    data: data
  })
}

export function siteDeptById (params) {
  return request({
    url: '/site/findOneById',
    method: 'get',
    params
  })
}

export function siteDelete (data) {
  return request({
    url: '/site/update',
    method: 'post',
    data
  })
}

// 省份
export function province (params) {
  return request({
    url: '/province/findGroupListById',
    method: 'get',
    params
  })
}

// 操作日志
export function deptLogList (params) {
  return request({
    url: '/serviceDeptLog/list',
    method: 'get',
    params
  })
}

export function deptLogListById (params) {
  return request({
    url: '/serviceDeptLog/findOneById',
    method: 'get',
    params
  })
}
// 冻结
export function updateaStatus (data) {
  return request({
    url: '/serviceDept/updateStatus',
    method: 'post',
    data: data
  })
}
export function serviceDeptLogList (params) {
  return request({
    url: '/serviceDeptLog/list',
    method: 'get',
    params
  })
}
